package Count;

import java.util.Scanner;

public class Counts {
    public static void main(String[] args) {
        Scanner reader = new Scanner(System.in);
        String sentence = reader.nextLine();

        int upcount = 0;
        int lowcount = 0;
        int othercount = 0;
        int digitcount = 0;

        for(int i = 0;i < sentence.length();i++) {
            char ch = sentence.charAt(i);
            if(Character.isUpperCase(ch))
                upcount++;
            else if(Character.isLowerCase(ch))
                lowcount++;
            else if(Character.isDigit(ch))
                digitcount++;
            else
                othercount++;
        }

        System.out.printf("小写字母有: %d个\n",lowcount);
        System.out.printf("大写字母有: %d个\n",upcount);
        System.out.printf("数字有: %d个\n",digitcount);
        System.out.printf("其他字符有: %d个\n",othercount);

    }
}
